const path = require('path')
const webpack = require('webpack')

module.exports = {
  mode: 'production',
  entry: {
    vue: ['./src/vendor.js']
  },
  output: {
    filename: '[name].dll.js',
    path: path.join(__dirname, 'dll')
  },
  plugins: [
    new webpack.DllPlugin({
      context: process.cwd(),
      path: path.join(__dirname, 'dll', '[name]-manifest.json'),
      name: '[name]_[hash]'
    })
  ]
}